<!DOCTYPE html>
<html lang="en" >
<head>
    <title>Atomsk - Option bind-shells - Pierre Hirel</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" media="screen" type="text/css" title="Default" href="./default.css" />
    <link rel="icon" href="../img/atomsk_logo.png" type="image/png" />
</head>
   
<body>

<p><a href="./index.html">Back to main menu</a></p>

<h2>Option: bind-shells</h2>

<h4>Syntax</h4>

<p><code>-bind-shells</code></p>

<p><code>-bs</code></p>


<h4>Description</h4>

<p>This option re-associates the shells with their core (in the sense of an ionic core-shell model).<p>

<p>First, it is assumed that the lists of cores and shells match. If a shell is close to its core (at a distance smaller than 1.5 &Aring;) then it is considered as already associated. But, if the shell is far away from the corresponding core, the periodic images of the shell are searched for. If one of the periodic images is close to the core, then the position of the shell is replaced by the position of that image. This can be useful if some shells, but not their cores, were translated because of periodic boundary conditions.</p>

<p>Second, if no periodic image seems to be associated with the core, it is assumed that the shell does not belong to this core, and the rest of the shell list is parsed. If another shell is found closer than 1.5 &Aring; from the core, then it is associated with the core. This can be useful when reading files where the positions of cores and shells are written in different orders. Finally, if no shell is found close to a core, then it is assumed that this core has no shell.</p>

<p>Shells must exist in the system for this option to apply. Note that the indices of shells may be modified, and their positions may be translated by one or more box vectors. The positions of cores is not modified by this option.</p>


<h4>Default</h4>

<p>By default the shells are not re-associated.</p>


<h4>Examples</h4>

<ul>
<li><code class="command">atomsk initial.gin -bind-shells final.gin</code>
<p>This will read <code>initial.gin</code>, re-bind all shells to the closest core, and write the result to <code>final.gin</code>.</p></li>
</ul>

<p><a href="./index.html">Back to main menu</a></p>

</body>

</html>
